package com.wn.procurement;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableRabbit//启用rabbitmq
@SpringBootApplication
@MapperScan(basePackages = "com.wn.procurement.mapper")
@EnableDiscoveryClient //注册nacos客户端
@EnableFeignClients//启用openfeign,不启用将导致openfeign的接口生成bean失败
public class ProcurementApplication {
    public static void main(String[] args) {
        SpringApplication.run(ProcurementApplication.class,args);
    }
}
